package com.song.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("t_permission")
public class Permission implements Serializable {
   @TableId(value = "permission_id",type = IdType.AUTO)
   private Integer permissionId;
   @TableField(value = "permission_name")
   private String permissionName;
   @TableField(value = "permission_url")
   private String permissionUrl;
   @TableField(value = "pid")
   private Integer pid;
   @TableField(value = "group_id")
   private Integer groupId;

   @Override
   public String toString() {
      return "Permission{" + "permissionId=" + permissionId + ", permissionName='" + permissionName + '\'' + ", permissionUrl='" + permissionUrl + '\'' + ", pid=" + pid + ", groupId=" + groupId + '}';
   }
}
